<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Strict//EN">
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>IupSetLanguage</title>

<link rel="stylesheet" type="text/css" href="../../style.css">
</head>
<body>

<h2>IupSetLanguage</h2>
<p>Sets the language name used by some 
  pre-defined dialogs. Can also be changed using the global attribute LANGUAGE.</p>
<h3>
Parameters/Return</h3>
<pre>void IupSetLanguage(const char *<b>name</b>); [in C] <br>
iup.SetLanguage(<b>name</b>: string) [in Lua]</pre>
<p><b>name</b>: Language name to be used. Can have one of the following values: </p>
<ul>
  <li>&quot;ENGLISH&quot; </li>
  <li>&quot;PORTUGUESE&quot; </li>
	<li>&quot;SPANISH&quot; (since 3.22)</li>
</ul>
<p>default: &quot;ENGLISH&quot;. </p>
<h3>Affects</h3>
<p>All elements that have pre-defined texts.
  The pre-defined texts will be stored using <a href="iupsetlanguage.html">IupSetLanguageString</a>.</p>
<p>The native dialogs like <strong>IupFileDlg</strong> will always be displayed 
in the system language.</p>
<p>Even if the language is not supported (meaning its pack of pre-defined 
strings are not defined) the new language name will be 
successfully stored so you can set your own strings and return a coherent value, 
and the current defined string will not be changed.</p>
<p>Here is a list of the pre-defined string names:</p>
<pre>IUP_ERROR
IUP_ATTENTION (since 3.22)
IUP_YES
IUP_NO
IUP_INVALIDDIR
IUP_FILEISDIR
IUP_FILENOTEXIST
IUP_FILEOVERWRITE
IUP_CREATEFOLDER
IUP_NAMENEWFOLDER
IUP_SAVEAS
IUP_OPEN
IUP_SELECTDIR
IUP_OK
IUP_CANCEL
IUP_RETRY
IUP_APPLY
IUP_RESET
IUP_GETCOLOR
IUP_HELP
IUP_RED
IUP_GREEN
IUP_BLUE
IUP_HUE
IUP_SATURATION
IUP_INTENSITY
IUP_OPACITY
IUP_PALETTE
IUP_TRUE
IUP_FALSE
IUP_FAMILY
IUP_STYLE
IUP_SIZE
IUP_SAMPLE
IUP_ERRORFILEOPEN (since 3.22)
IUP_ERRORFILESAVE (since 3.22)
</pre>
<h3>Examples</h3>
<pre>#include &quot;iup.h&quot;

void main(void)
{
  IupOpen();
  IupSetLanguage(&quot;ENGLISH&quot;); 
  IupMessage(&quot;IUP Language&quot;, IupGetLanguage());
  IupClose();
}</pre>
<h3>See Also</h3>
<p><a href="iupgetlanguage.html">IupGetLanguage</a>,
<a href="iupsetlanguagestring.html">IupSetLanguageString</a>, 
  <a href="../attrib/iup_globals.html#LANGUAGE">LANGUAGE</a></p>

</body>

</html>